package com.ygqh.baby.service;

import java.util.List;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.model.AdminPurchaseDetailInCount;
import com.ygqh.baby.po.AdminPurchaseDetail;

public interface AdminPurchaseDetailService {

	List<AdminPurchaseDetail> find();

	int findCount();

	AdminPurchaseDetail findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(AdminPurchaseDetail adminPurchaseDetail);

	int update(AdminPurchaseDetail adminPurchaseDetail);

	int saveOrUpdate(AdminPurchaseDetail adminPurchaseDetail);

	ResultSet<AdminPurchaseDetail> search(QueryInfo queryInfo, String q);

	List<AdminPurchaseDetail> findByPurchaseCode(String purchaseCode);

	int updateBatch(List<AdminPurchaseDetail> purchaseDetail);

	List<AdminPurchaseDetailInCount> findPurchaseDetailInStockCountByContractCode(String contractCode);

}
